/**
 * There are <a href="https://github.com/thinkgem/jeesite">JeeSite</a> code generation
 */
package com.thinkgem.jeesite.modules.order.entity;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import com.google.common.collect.Lists;
import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 发货单Entity
 * @author 李忠
 * @version 2013-07-28
 */
@Entity
@Table(name = "order_fahuodan")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class FaHuoDan extends DataEntity {

	private static final long serialVersionUID = 1L;
	private Long id; // 编号
	private String no; // 发货单单号
	private String shouhuoren;//收货人
	private String mudidi;// 目的地
	private Integer baoshu;//包数

	private String shfs;// （0：整送；1：拆送）
	private String shqd;// 送货方式(0：直航；1：空转；2：铁快；3：行邮)

	private List<QuHuoDan> quHuoDanList = Lists.newArrayList();

	public FaHuoDan() {
		super();
	}

	public FaHuoDan(Long id) {
		this();
		this.id = id;
	}

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	//@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seq_order_faHuoDan")
	//@SequenceGenerator(name = "seq_order_faHuoDan", sequenceName = "seq_order_faHuoDan")
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(length = 50)
	public String getNo() {
		return no;
	}

	public void setNo(String no) {
		this.no = no;
	}

	@Column(length = 50)
	public String getShouhuoren() {
		return shouhuoren;
	}

	public void setShouhuoren(String shouhuoren) {
		this.shouhuoren = shouhuoren;
	}

	public Integer getBaoshu() {
		return baoshu;
	}

	public void setBaoshu(Integer baoshu) {
		this.baoshu = baoshu;
	}

	@Column(length = 50)
	public String getMudidi() {
		return mudidi;
	}

	public void setMudidi(String mudidi) {
		this.mudidi = mudidi;
	}

	@Column(length = 1)
	public String getShfs() {
		return shfs;
	}

	public void setShfs(String shfs) {
		this.shfs = shfs;
	}

	@Column(length = 1)
	public String getShqd() {
		return shqd;
	}

	public void setShqd(String shqd) {
		this.shqd = shqd;
	}

	public List<QuHuoDan> getQuHuoDanList() {
		return quHuoDanList;
	}

	public void setQuHuoDanList(List<QuHuoDan> quHuoDanList) {
		this.quHuoDanList = quHuoDanList;
	}

}
